#ifndef __RGB_H__
#define __RGB_H__

#include "main.h"

// R    PD1  
// G    PD14
// B    PA15
#define R_port GPIOD
#define G_port GPIOD
#define B_port GPIOA

#define R_pin GPIO_PIN_1
#define G_pin GPIO_PIN_14 
#define B_pin GPIO_PIN_15   

void RGB_Set_R(uint8_t state);
void RGB_Set_G(uint8_t state);
void RGB_Set_B(uint8_t state);
void RGB_Close_all(void);
void RGB_Set(uint8_t R, uint8_t G, uint8_t B);
void RGB_proc(void);

#endif
